package ModelLayer; //makes this class a part of the ModelLayer package
import java.util.*;

/**
 * 
 * <code>Copy</code> class stores information about copy of a DVD.
 * It stores all the submitted by the <code>DVD</code> class and the <code>Controller</code>.
 * 
 * @author (dmaj0913 - group 2) 
 * @version (2013.11.08)
 */
public class Copy
{
    private long serialNumber;
    private String purchaseDate;
    private int purchaseCost;
    
    /**
     * Constructor creates new instance of this <code>Copy</code> class.
     * @param serialNumber stores a number of type long that is the serial number of a copy.
     * @param purchase date takes a Character String with the purchase date of a copy.
     * @param purchase cost takes a Character String with the purchase cost of a copy.
     */
    public Copy(long serialNumber, String purchaseDate, int purchaseCost)
    {
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchaseCost = purchaseCost;
    }
    /**
     * Returns the serial number of this copy.
     * @return Character string with the serial number of the copy.
     */
    public long getSerialNumber()
    {
        return serialNumber;
    }
    
    /**
     * Returns the purchase date of this copy.
     * @return Character string with the purchase date of the copy.
     */
    public String getPurchaseDate()
    {
        return purchaseDate;
    }
    
    /**
     * Returns the purchase cost of this copy.
     * @return Character string with the purchase cost of the copy.
     */
    public int getPurchaseCost()
    {
        return purchaseCost;
    }
    
    /**
     * Changes the name of a copy with a desired new one.
     * @param newvar number of type long that will be the new serial number of the copy.
     */
    public void setSerialNumber(long newvar)
    {
        serialNumber = newvar;
    }
    /**
     * Changes the purchase date of a copy with a desired new one.
     * @param newvar Character string with the new purchase date of the person.
     */
    public void setPurchaseDate(String newvar)
    {
        purchaseDate = newvar;
    }
    
    /**
     * Changes the purchase cost of a copy with a desired new one.
     * @param newvar Character string with the new purchase cost of the copy.
     */
    public void setPurchaseCost(int newvar)
    {
        purchaseCost = newvar;
    }
    
}
